package com.koo.modules.product.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 说明：
 *
 * @author: charlin
 * @date: 2022-05-31 17:24
 * @version: 1.0.1
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVo implements Serializable {


    private Long id;

    private Long parentId;

    private Integer sort;

    @ApiModelProperty(value = "类别名称")
    private String label;

    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "子类别")
    private List<CategoryVo> children;

    public CategoryVo(Long id, Long parentId, String label, String value) {
        this.id = id;
        this.parentId = parentId;
        this.label = label;
        this.value = value;
    }
}
